# -*- coding: utf-8 -*-
# @Author：fanmingxiang@touty.io
# @Date  ：2022/form_case/27 14:42
import os
import yaml

from config import BASE_PATH


def read_case(filename):
    filepath = BASE_PATH + os.sep + 'data' + os.sep + filename
    arr = []
    with open(filepath, 'r', encoding='utf-8') as f:
        for i in yaml.safe_load(f):
            arr.append(tuple(i.values()))
        return arr
